<template>
  <div class="Nav">
    <img
      src="https://pic.cdfgsanya.com/assets/upload/visual/d1b3c445d70b64e1f7b90afaf02b4fb9.png"
      alt=""
    />
    <van-search
      v-model="value"
      shape="round"
      background="gainsboro"
      placeholder="兰蔻"
    />
    <van-icon name="service" @click="fun"/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
        fun(){
            //方法1:
            this.$router.push("/Login");
        }
    },
};
</script>

<style scoped>
.Nav {
  width: 100%;
  height: 54px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: black;
  background-color: gainsboro;
  position: fixed;
  top: 0;
  z-index: 999;
}
.Nav img {
  height: 34px;
}
</style>